/****************************************************************************
*
* Copyright (c) 2023  C*Core -   All Rights Reserved
*
* THIS SOFTWARE IS DISTRIBUTED "AS IS, " AND ALL WARRANTIES ARE DISCLAIMED,
* INCLUDING MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
*
* PROJECT     : CCFC2011BC
* DESCRIPTION : CCFC2011BC FLEXLIN demo h file
* HISTORY     : Initial version.
* @file     lin_demo.h
* @version  1.1
* @date     2023 - 02 - 20
* @brief    Initial version.
*
*****************************************************************************/
#ifndef LIN_DEMO_H
#define LIN_DEMO_H

#include "CCFC2011BC.h"
#include "typedefs.h"
#include "console.h"
#include "lin_lld.h"

#define LIN_CASE1       1U
#define LIN_CASE2       1U
#define LIN_CASE3       1U
#define LIN_CASE4       1U
#define LIN_CASE5       1U
#define LIN_CASE6       1U
#define LIN_CASE7       1U
#define LIN_CASE8       1U
#define LIN_CASE9       1U
#define LIN_CASE10      1U
#define LIN_CASE11      1U
#define LIN_CASE12      1U
#define LIN_CASE13      1U
#define LIN_CASE14      1U
#define LIN_CASE15      1U
#define LIN_CASE16      1U
#define LIN_CASE17      1U
#define LIN_CASE18      1U
#define LIN_CASE19      1U

extern void Lin_Demo(void);

static uint32_t master_tx_callback(const LinDriver *ldp, uint8_t idMessage,   uint8_t *buffer,  uint16_t len);
static uint32_t master_rx_callback(const LinDriver *ldp, uint8_t idMessage,  const uint8_t *buffer,  uint16_t len);
static uint32_t slave_tx_callback(const LinDriver *ldp, uint8_t idMessage,   uint8_t *buffer, uint16_t len) ;
static uint32_t slave_rx_callback(const LinDriver *ldp, uint8_t idMessage,   const uint8_t *buffer,  uint16_t len);

#endif  /* LIN_DEMO_H */
